package com.zt.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author RedReins
 * @version 1.0
 * @description: TODO
 * @date 2021/7/21 8:53
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult<T> {
    private int code;
    private String msg;
    private T data;

    public  JsonResult(int code,String msg){
        this(code,msg,null);
    }

}
